<template>
  <el-form-item 
	:prop="inobj.prop"
	required="true"
	:rules="defR"
	>
      <template #label>
		  {{inobj.code}}
		  <el-button>Default</el-button>
    </el-form-item>
</template>

<script>
module.exports = {
  name: "nodeInd",
  props: {
	  indata: {
	      type: Object,
	      default: function() {
	        return []
	      }
	  },
	  inindex: {
	      type: Number,
	      default: function() {  
	        return 0
	      }
	  }
  },
  data() {
    return {
      inobj: this.indata,
      index: this.inindex,
      
      defR:[{
			"trigger": "blur",
			"message": "不能为空",
			"required": true
		}]
    }
  },
	watch: {
      //'info' : {
	      //handler(val) {
			  
	      //},
	      //immediate: true, // 初次监听即执行
	      //deep: true
	    //}
    },
  methods: {
    
  },
  created() {
    
  }
}
</script>
<style scoped>

</style>